package sicnu.cs.aps.common.enums;

/**
 * @author CaiKe
 * @date 2021/11/13 18:03
 */
public enum OperEnum implements BaseEnum {
    // 配置操作日志的操作类型
    ADD(1, "添加"),
    DELETE(2, "删除"),
    UPDATE(3, "更新"),
    QUERY(4, "查找"),
    OTHER(5, "其他操作"),
    ;


    int value;
    String description;


    OperEnum() {
    }

    OperEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
    
    @Override
    public int getIndex() {
        return value;
    }
}